<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <include file="Public:header" />
  <!--[if lt IE 9]>
    <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>
<body>
  <include file="Public:body_top" />

  <div class="container-fluid">
    <div class="row">
      <div class="col-sm-3 col-md-2 sidebar hidden-xs">
        <div class="menu">
          <dl>
            <dt><i class="cm-order"></i>小程序</dt>
            <dd><a href="{:U('Apps/xcx_edit')}">小程序配置</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=xcx_msg_edit">小程序模板消息</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=storage">存储配置</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=sms">短信配置</a></dd>
            <dd><a href="{:U('Apps/xcx_edit')}&tpl=withdraw">提现配置</a></dd>
            <dd class="active"><a href="{:U('Mode/index')}">首页模式图标</a></dd>
          </dl>
          <dl>
            <dt><i class="cm-advert"></i>广告管理</dt>
            <dd><a href="{:U('Adverts/index')}">广告列表</a></dd>
            <dd><a href="{:U('Adverts/add')}">新建广告</a></dd>
          </dl>
          <dl>
            <dt><i class="icon-uniE611"></i>帮助管理</dt>
            <dd><a href="{:U('Helps/index')}">帮助列表</a></dd>
            <dd><a href="{:U('Helps/add')}">新建帮助</a></dd>
          </dl>
        </div>
      </div>
      <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <div class="main-hd">
          <h5>首页图标</h5>
          <a style="float:right;padding-right:50px"  href='{:U("Mode/add", "id=$vo[id]")}'>新建图标</a>
        </div>

        <div class="main-bd">
          <div class="table-responsive">
            <table class="table table-cmcm">
              <tr>
                <th>ID</th>
                <th>名称</th>
                <th>缩略图</th>
                <th>状态</th>
                <th>模式</th>
                <th>排序</th>
                <th>操作</th>
              </tr>

              <volist name="list" id="vo">
                <tr>
                  <td>{$vo.id}</td>
                  <td>{$vo.name}</td>
                  <td><img src="{$vo.pic}" style="width:40px; height:40px;"></a></td>
                  <td><if condition="$vo.status == 0 ">开启<else />关闭</if></td>
                  <td> <if condition="$vo.mode == 2 ">优选模式<else />默认模式</if></td>
                  <td>{$vo.order_id}</td>
                  <td>
                      <a href='{:U("Mode/edit", "id=$vo[id]")}'>编辑</a> |
                      <a href='{:U("Mode/delete", "id=$vo[id]")}'>删除</a>
                  </td>
                </tr>
              </volist>
            </table>
          </div>
        </div>
   
          <ul class="pagination pull-right">
            <li>
              <a href="{$page_list.page.first.href}" aria-label="Previous">
                <span aria-hidden="true">&laquo;</span>
              </a>
            </li>
            <volist name="page_list.page.list" id="plist">
              <li <eq name="plist.index" value="1">class="active"</eq>><a href="{$plist.href}">{$plist.page}</a></li>
            </volist>
            <li>
              <a href="{$page_list.page.last.href}" aria-label="Next">
                <span aria-hidden="true">&raquo;</span>
              </a>
            </li>
          </ul>

        </div>
      </div>
    </div>
</body>
</html>